// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
//引入elementui
import ElementUI from 'element-ui';
//引入高德地图
import VueAMap from 'vue-amap';
//引入qs插件
import qs from 'qs';
//引入自定义主题
import './theme/index.css';
//引入message消息提示

import App from './App'
//引入路由
import router from './route'
//引入vuex
import store from './store'



//使用elementui
Vue.use(ElementUI);
//使用axios
Vue.use(VueAxios, axios);
//使用高德
Vue.use(VueAMap);

VueAMap.initAMapApiLoader({
    key:'afb85c21a3a099c9e469c10c069984d5',
    plugin:['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.MarkerClusterer'],
    v:'1.4.4'
});

//引入qs全局定义
Vue.prototype.$qs=qs;
window.axios=axios;
window.qs=qs;

//引入定义的域名
import { ROAST_CONFIG } from './config';
Vue.prototype.$API_URL=ROAST_CONFIG.API_URL;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
